/*

File: Constants.h
Abstract: Common constants across source files (screen coordinate consts, etc.)

*/

#import "SBJson.h"
#import "StudentModel.h"




//  WCF UADE Service 

//#define kLoginPage @"http://www.webcampus.uade.edu.ar/wcfuade/UADEService/login/"
//#define kMarksPage @"http://www.webcampus.uade.edu.ar/wcfuade/UADEService/getPeriodosClase/%@?format=JSON"
//#define kMoreInfoPage @"http://www.webcampus.uade.edu.ar/wcfuade/UADEService/getMoreInfoClase/%@/%@?format=JSON"
//#define kGroupPage @"https://www.webcampus.uade.edu.ar/wcfuade/UADEService/getGrupo/%@/%@?format=JSON"
//#define kCommentPage @"http://www.webcampus.uade.edu.ar/wcfuade/uadeservice/addCommentInGroup/%@/%@"
////
//////versionCliente;appID;
//#define kCompatibilityCheck @"https://www.webcampus.uade.edu.ar/wcfuade/UADEService/getCompatibleVersion/%@/%@?format=JSON"
//////PUSH
//#define kPushSubscribe @"http://www.webcampus.uade.edu.ar/wcfuade/UADEService/SuscribirPush/%@/3/%@/webcampus.iphone?format=JSON"
//#define kGetNotification @"http://www.webcampus.uade.edu.ar/wcfuade/UADEService/getNotificacionPush/%@/%@?format=JSON"
//#define kAckNotification @"https://www.webcampus.uade.edu.ar/wcfuade/UADEService/AckNotificacionesPush/%@/%@/webcampus.iphone?format=JSON"

//  WCF Service 

 #define kLoginPage @"https://www.webcampus.uade.edu.ar/WCF/UADEService/login/"
 #define kMarksPage @"https://www.webcampus.uade.edu.ar/WCF/UADEService/getPeriodosClase/%@?format=JSON"
 #define kMoreInfoPage @"https://www.webcampus.uade.edu.ar/WCF/UADEService/getMoreInfoClase/%@/%@?format=JSON"
 #define kGroupPage @"https://www.webcampus.uade.edu.ar/WCF/UADEService/getGrupo/%@/%@?format=JSON"
 #define kCommentPage @"http://www.webcampus.uade.edu.ar/wcf/uadeservice/addCommentInGroup/%@/%@"
 
 //versionCliente;appID;
 #define kCompatibilityCheck @"https://www.webcampus.uade.edu.ar/WCF/UADEService/getCompatibleVersion/%@/%@?format=JSON"
 //PUSH
 #define kPushSubscribe @"https://www.webcampus.uade.edu.ar/WCF/UADEService/SuscribirPush/%@/3/%@/\"webcampus.iphone\"?format=JSON"
 #define kGetNotification @"https://www.webcampus.uade.edu.ar/WCF/UADEService/getNotificacionPush/%@/%@?format=JSON"
 #define kAckNotification @"https://www.webcampus.uade.edu.ar/WCF/UADEService/AckNotificacionesPush/%@/%@/webcampus.iphone?format=JSON"


///////////////////////////////////////////////////////////////////////////////////////////////////
// Errors

#define  ERROR_DOMAIN @"three20.net"


///////////////////////////////////////////////////////////////////////////////////////////////////
// Dimensions of common iPhone OS Views

#define  ROW_HEIGHT 44
#define  TOOLBAR_HEIGHT 44
#define  LANDSCAPE_TOOLBAR_HEIGHT 33
#define  KEYBOARD_HEIGHT 216
#define  LANDSCAPE_KEYBOARD_HEIGHT 160
#define  ROUNDED -1

///////////////////////////////////////////////////////////////////////////////////////////////////
// Color helpers


// View Handlers
#define TTNIBVIEW(nibName)  \
[[[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil] objectAtIndex:0]

#define TTALERTMSG(title,msg)  \
[[[UIAlertView alloc] initWithTitle: title message:msg delegate:nil cancelButtonTitle:NSLocalizedString(@"Ok",@"") otherButtonTitles:nil]  show]

#define TTSTRING(data) \
[[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease]


///////////////////////////////////////////////////////////////////////////////////////////////////
// Dimensions of common iPhone OS Views

#define  ROW_HEIGHT 44
#define  TOOLBAR_HEIGHT 44
#define  LANDSCAPE_TOOLBAR_HEIGHT 33
#define  KEYBOARD_HEIGHT 216
#define  LANDSCAPE_KEYBOARD_HEIGHT 160
#define  ROUNDED -1

#define SCROLL_VIEW_TAG 11
#define VIEW_OFFSET 100
#define TEXT_VIEW_OFFSET 32
#define KEYBOARD_HEIGHT_DIFF 56 
#define PORTRAIT_SCROLL_RECT CGRectMake(0,44, 320, 200)
#define LANDSCAPE_SCROLL_RECT CGRectMake(0,44,480,96)





// System constants
#define sWidth  320
#define sHeight 480
#define PI 3.14159265358979323846264338327950288




// thumbnails margins 
#define iMargin                 5.0
// image reflection
#define  kDefaultReflectionFraction	     0.65;
#define  kDefaultReflectionOpacity		 0.40;

// padding for margins
#define kLeftMargin				20.0
#define kTopMargin				20.0
#define kRightMargin			20.0
#define kBottomMargin			20.0
#define kTweenMargin			10.0

// control dimensions
#define kStdButtonWidth			106.0
#define kStdButtonHeight		40.0
#define kSegmentedControlHeight 40.0
#define kPageControlHeight		20.0
#define kPageControlWidth		160.0
#define kSliderHeight			7.0
#define kSwitchButtonWidth		94.0
#define kSwitchButtonHeight		27.0
#define kTextFieldHeight		30.0
#define kSearchBarHeight		40.0
#define kLabelHeight			20.0
#define kProgressIndicatorSize	40.0
#define kToolbarHeight			40.0
#define kUIProgressBarWidth		160.0
#define kUIProgressBarHeight	24.0

// specific font metrics used in our text fields and text views
#define kFontName				@"Arial"
#define kTextFieldFontSize		18.0
#define kTextViewFontSize		18.0

// UITableView row heights
#define kUIRowHeight			50.0
#define kUIRowLabelHeight		22.0

// table view cell content offsets
#define kCellLeftOffset			8.0
#define kCellTopOffset			12.0